package com.huluobo.lib_base.bean

import androidx.room.Entity
import androidx.room.PrimaryKey
import com.chad.library.adapter.base.entity.MultiItemEntity
import java.io.Serializable

/**
 *  Created by LC on 2025/9/15.
 *  Room第一步,声明表,标记主键
 */
@Entity(tableName = "video_info")
data class VideoBean(
    //定位地址
    val address: String?,
    //作者
    val authname: String,
    //描述
    val caption: String,
    //0 未点赞 1代表点赞
    var dianzan: Int,
    var guanzhu: Int,
    //头像地址
    val headpath: String,
    @PrimaryKey
    val id: Int,
    //喜欢数量
    val like_count: Int,
    //发布时间
    val publishtime: String,
    //用于多布局 0 1 2
    val type: Int,
    //视频的第一帧图片
    val videomainimg: String,
    //视频路径
    val videopath: String,
    //播放次数
    val view_count: Int
) : MultiItemEntity, Serializable {
    //实现多布局的实体类方法,重写根据什么来决定多布局
    override val itemType: Int
        get() = type

}